import sqlite3

# Connect to SQLite3 Database
conn = sqlite3.connect('messages.db')
cursor = conn.cursor()

# Create table
cursor.execute('''
CREATE TABLE IF NOT EXISTS messages (
    message_id INTEGER PRIMARY KEY,
    user_id INTEGER,
    date TEXT,
    text TEXT
)
''')

conn.commit()
conn.close()
